#ifndef _INSULATION_H_
#define _INSULATION_H_

#include "stm32f10x.h"

typedef struct
{
	u32 BatteryVolt;  //B+  0.1V
	u32 PackVolt;     //P+???
	u32 BnP1pVolt;
	u32 BnP2pVolt;
	u32 BnP3pVolt;
	u32 Vt;
	u32 Vn;
	u32 Vp;
	u32 Rn;
	u32 Rp;
	u32 InsulationResistance[10];   //????
	u32 PWMResistance;   //????
	u32 TVResistance;   //????
	u32 HV;   //????}HV_ST;
	u32 LV;   //????}HV_ST;
	u32 DV;   //????}HV_ST;
	u32 volt[8];
}HV_ST;
extern HV_ST HV_STData;


#define PWMJuwyuan_Pin		GPIO_Pin_1
#define PWMJuwyuan_Port		GPIOA

u8 GT_Get_PwmRes( HV_ST *HVDat);
#endif





